﻿@{
    ViewBag.Title = "Add";
}

@model SimpleApp.Models.MILESTONE
<h2>Add</h2>

@using (Html.BeginForm("Add", "Milestone", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend></legend>

        <div class='form-group'>
        <div class="col-sm-2 control-label">
            @Html.LabelFor(model => model.PERSON)
        </div>
        <div class="col-sm-2">
            @Html.DropDownList("PERSON", (SelectList)ViewData["MILESTONE_OWNER"], "SELECT", new { @class = "form-control" })
            @Html.ValidationMessageFor(model => model.PERSON)
        </div>
        </div>

        <div class='form-group'>
        <div  class="col-sm-2 control-label">
            @Html.LabelFor(model => model.CREATETIME)
        </div>
        <div class="col-sm-2">
           @Html.EditorFor(model => model.CREATETIME, "DataPicker")
        </div>
        </div>

        <div class='form-group'>
        <div class="col-sm-2 control-label">
            @Html.LabelFor(model => model.NAME)
        </div>
        <div class="col-sm-2">
            @Html.TextBoxFor(x => x.NAME, new { @class = "form-control" })
            @Html.ValidationMessageFor(model => model.NAME)
        </div>
        </div>


        <div class='col-sm-4'>
            <button type="submit" class="btn btn-primary pull-right">Add</button>
        </div>
    </fieldset>
}